<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>1.创建一个电脑对象</title>
    <script>
        // 电脑对象 该对象要有 颜色、重量、品牌、型号、可以看电影、听音乐、打游戏、敲代码
        var obj = {
            color: '颜色',
            weight: '重量',
            logo: '品牌',
            type: '型号',
            application: function () {
                console.log('看电影');
                console.log('听音乐');
                console.log('打游戏');
                console.log('敲代码');
            }
        }
        console.log(obj['color']);
        console.log(obj['weight']);
        console.log(obj.logo);
        console.log(obj.type);
        var re = obj.application();
    </script>
</head>

<body>

</body>

</html>